/**
 * Created by admin on 2017/4/25.
 */
define(['app', 'filters/filters'], function(app) {
    app.register.controller('pay', function ($scope, $http, $state, $sce, $stateParams, $rootScope, $interval,$q) {
        $scope.submitDate=JSON.parse($stateParams.paydata);
        $('input[name="company"]').val( $scope.submitDate.company);
        $('input[name="phone"]').val( $scope.submitDate.phone);
        $('input[name="actor"]').val( $scope.submitDate.actor);
        $('input[name="ww"]').val( $scope.submitDate.ww);
        $('input[name="province"]').val( $scope.submitDate.province);
        $('input[name="city"]').val( $scope.submitDate.city);
        $('input[name="customer"]').val( $scope.submitDate.customer);
        $('input[name="verifyCode"]').val( $scope.submitDate.verifyCode);
        $('input[name="email"]').val( $scope.submitDate.email);
        document.forms['myform'].submit();
    })
})